﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoolEngine.Gui
{
    public class GameMenuControl:GuiControl
    {
        private static bool hasInstance;
        public static GameMenuControl Instance { get; private set; }
        //public GameMenuControl()
        //{
        //    if (hasInstance && !DesignMode)
        //    {
        //        throw new InvalidOperationException("Only one instance is allowed.");
        //    }
        //    hasInstance = true;
        //    Instance = this;
        //}
        public GameMenuControl(CoolGame game, GuiRenderer renderer):base(game, renderer)
        {
            if (hasInstance)
            {
                throw new InvalidOperationException("Only one instance is allowed.");
            }
            hasInstance = true;
            Instance = this;
        }


    }
}
